/*
 * @Author: 杨光辉(GerhardYang)
 * @Date: 2020-12-14 13:09:24
 * @LastEditors: 杨光辉(GerhardYang)
 * @LastEditTime: 2021-06-04 12:15:57
 * @Description: file content
 * @Copyright: 超图软件华中平台客户中心 (SuperMap Software Co., Ltd. -Central China Platform)
 */

const localStorage = {
  get(key) {
    let temp = window.localStorage.getItem(key);
    if (temp) {
      return temp;
    } else {
      return false;
    }
  },
  set(key, value) {
    window.localStorage.setItem(key, value);
  },
  remove(key) {
    window.localStorage.removeItem(key);
  },
};

export default localStorage;
